import GroupLayer from "@arcgis/core/layers/GroupLayer.js";
import { map } from "./map";
import {
  sjz_road_layer,
  police_layer,
  factory_layer,
  hospital_layer,
  fire_station_layer,
  river_line_layer,
  sjz_county_layer,
  river_area_layer,
} from "@/api/featuresLayers";

export const addGroupLayer = () => {
  const groupLayer = new GroupLayer({
    id: "groupLayer",
    layers:[sjz_road_layer,
      police_layer,
      factory_layer,
      hospital_layer,
      fire_station_layer,
      river_line_layer,
      sjz_county_layer,
      river_area_layer,],
    visible: true,
  });
  map.layers.add(groupLayer)
};
